<?php

namespace app\admin\controller;

use think\Controller;

class Index extends Base
{

    public function index()
    {
        $param = [
            1 => [
                'name' => '文章管理',
                'model' => '',
                'action' => '',
                'ioc' => '&#xe723;',
                'son' => [
                    0 => [
                        'name' => '文章列表',
                        'model' => 'article',
                        'action' => 'index',
                        'ioc' => '&#xe6a7;',
                    ]
                ]
            ],
            2 => [
                'name' => '分类管理',
                'model' => '',
                'action' => '',
                'ioc' => '&#xe723;',
                'son' => [
                    0 => [
                        'name' => '分类列表',
                        'model' => 'group',
                        'action' => 'index',
                        'ioc' => '&#xe6a7;',
                    ]
                ]
            ],
            3 => [
                'name' => '关于江中',
                'model' => '',
                'action' => '',
                'ioc' => '&#xe723;',
                'son' => [
                    0 => [
                        'name' => '列表',
                        'model' => 'About',
                        'action' => 'index',
                        'ioc' => '&#xe6a7;',
                    ]
                ]
            ],
            4 => [
                'name' => '合作伙伴',
                'model' => '',
                'action' => '',
                'ioc' => '&#xe723;',
                'son' => [
                    0 => [
                        'name' => '合作伙伴列表',
                        'model' => 'Cooperative',
                        'action' => 'index',
                        'ioc' => '&#xe6a7;',
                    ]
                ]
            ]
        ];
        $this->assign('param',$param);
        return $this->fetch();
    }

    public function welcome()
    {
        return $this->fetch();
    }
}